package com.hb.函数式编程

fun main() {
    val list = listOf(1..5, 3..8, 10..15)
    val flatList = list.flatMap {
        it
    }
    flatList.forEach(::println)
}